package com.ruoyi.user.service;

import com.ruoyi.user.domain.UserOrderDetail;
import com.ruoyi.user.domain.UserOrderReview;
import com.ruoyi.user.domain.UserOrders;
import com.ruoyi.user.domain.vo.OrderSubmitRequest;
import com.ruoyi.user.domain.vo.OrderListItemVO;

import java.util.List;

public interface IUserOrdersService {
    Long submitOrder(OrderSubmitRequest request);
    boolean payOrder(Long orderId, Integer paymentMethod);
    List<UserOrders> listOrdersByCustomer(Long customerId);
    List<UserOrders> listOrdersByStatus(Long customerId, Integer status);
    UserOrderDetail getOrderDetail(Long orderId);
    int addOrderReview(UserOrderReview review);
    List<OrderListItemVO> listOrderSummariesByCustomer(Long customerId);
    List<OrderListItemVO> listOrderSummariesByStatus(Long customerId, Integer status);

    int countOrdersByMerchantLastMonth(Long merchantId);
}
